import request from '@/router/axios';

//客户工程评审表
//客户工程评审表列表
export const getReviewList = (params) => {
  return request({
    url: '/api/hg-public/engineeringreview/list',
    method: 'get',
    params: {
      ...params,
    }
  })
}
//新增客户工程评审表
export const addReview = (row) => {
  return request({
    url: '/api/hg-public/engineeringreview/save',
    method: 'post',
    data: row
  })
}

//删除客户工程评审表
export const removeReview = (ids) => {
  return request({
    url: '/api/hg-public/engineeringreview/remove',
    method: 'post',
    params: {
      ids,
    }
  })
}

//更新客户工程评审表
export const updateReview = (row) => {
  return request({
    url: '/api/hg-public/engineeringreview/update',
    method: 'post',
    data: row
  })
}

//获取客户工程评审表详情
export const getReviewDetails = (id) => {
  return request({
    url: '/api/hg-public/engineeringreview/detail',
    method: 'get',
    params: {
      id,
    }
  })
}


//提交客户工程评审表
export const projectEngineerSubmit = (engineeringReviewId) => {
  return request({
    url: '/api/hg-public/engineeringreview/start-process',
    method: 'get',
    params: {
      engineeringReviewId,
    }
  })
}